package com.zhen.generator.util;

import java.io.File;
import java.io.IOException;

import cn.org.rapid_framework.generator.util.GLogger;

public class FileHelper {

    /**
     * 获取当前工作目录。
     * 
     * @return
     */
    public static String getCurrentPath() {
        File directory = new File(".");
        try {
            return directory.getCanonicalPath();
        }
        catch (IOException e) {
            GLogger.error(e.getMessage());
        }
        return "";
    }

}
